#ifndef	_TOOLS_H
#define _TOOLS_H 

#ifdef SYMBOL_GLOBALS
   #define TOOLS_EXT
#else
   #define TOOLS_EXT extern
#endif //* SYMBOL_GLOBALS
	 
TOOLS_EXT INT8U BCDToDecimal(INT8U bBCDCode);
TOOLS_EXT void DecimalToBCD(INT32U u32Decimal, INT8U *pu8BCD, INT32U u32BCDBytes);
TOOLS_EXT INT8U CaculateWeekDay(INT32U u32Year, INT32U u32Month, INT32U u32Day);
TOOLS_EXT INT32U ASCIIDecimalToBCDDecimal(const char *pszASCIIDecimal, INT32U unASCIIDecimalLen, INT8U *pubBCDDecimal, INT32U unBCDDecimalLen); 
TOOLS_EXT INT16U crc16(const INT8U *pubCheckData, INT32U unCheckLen, INT16U usInitVal); 
TOOLS_EXT void GetSystemWeekEngShort(uint8_t ubWeekDay, char *pszSystemWeek); 

#endif

